package com.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.io.Serializable;
import java.util.Date;

@ExcelTarget("users1")
public class User implements Serializable {
    @Excel(name = "编号")
    private Integer id;
    @Excel(name = "用户名")
    private String username;
    @Excel(name = "姓名")
    private String realname;
    @ExcelIgnore
    private String pwd;
    @Excel(name = "性别")
    private Boolean gender;
    @Excel(name = "电话")
    private String telephone;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "入职日期",format = "yyyy年MM月dd日")
    private Date onboarding;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getOnboarding() {
        return onboarding;
    }

    public void setOnboarding(Date onboarding) {
        this.onboarding = onboarding;
    }

    public User(String email, Date onboarding) {
        this.email = email;
        this.onboarding = onboarding;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public User(String username, String realname, String pwd, Boolean gender, String telephone) {
        this.username = username;
        this.realname = realname;
        this.pwd = pwd;
        this.gender = gender;
        this.telephone = telephone;
    }

    public User() {
    }
}